package com.yuerenjf.yuerenjinfu.http;

import android.content.Context;

import com.yuerenjf.yuerenjinfu.utils.CacheUtils;
import com.yuerenjf.yuerenjinfu.utils.ConstantUtils;

import org.xutils.http.RequestParams;

/**
 * Created by Administrator on 2017/6/16 0016.
 */

public class HttpRequestParams extends RequestParams{


    public HttpRequestParams(Context context,String url){
        super(url);
        addHeader("User-Agent", Constants.HEAD_REQUEST);
        addBodyParameter("access_token", CacheUtils.getString(context, ConstantUtils.SP_TOKEN));
    }
}
